package com.cbs.android.component.systemutils.sample;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.cbs.android.component.log.L;
import com.cbs.android.component.systemutils.SystemUtils;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = MainActivity.class.getName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }

    public void getVersion(View view) {
        L.e(TAG, String.format("%s(%s)", SystemUtils.getVersionName(getApplicationContext()), SystemUtils.getVersionCode(getApplicationContext())));
    }
}
